CC=gcc
T=client

WALL=-Wall
C=$(wildcard *.c)
#O=$(patsubst *.c,*.o,$(C))
#O=$(C:.c=.o)

$(T):$(C)
	$(CC) $^ -o $@ $(WALL)
#%.o:%.c
#	$(CC) -c $< -o $@ $(WALL)

.PHONY:clean
clean:
	rm -f *.o $(T)

.PHONY:link
link:
	./client 127.0.0.1 8888

